#include "StoryDetailsWidget.h"


StoryDetailsWidget::StoryDetailsWidget(QWidget *parent): QWidget(parent), ui(new Ui::StoryDetailsWidgetClass())
{
	ui->setupUi(this);
	setFixedSize(constant.StoryPage);
}

StoryDetailsWidget::~StoryDetailsWidget()
{
	delete ui;
}

void StoryDetailsWidget::setUi(const StoryDetailsData& storyDetailsData)
{
	this->storyDetailsData = storyDetailsData;
}

void StoryDetailsWidget::mouseReleaseEvent(QMouseEvent* event)
{
	Q_UNUSED(event)
	if (event->button() == Qt::LeftButton)
	{
		emit on_storyDetails_close();
	}
}
